/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.entity;

import com.lczyfz.istep.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * CTF题目集管理Entity
 * @author dh
 * @version 2017-01-16
// */
//fd
public class ResourceCtfSet extends DataEntity<ResourceCtfSet> {
	private static final long serialVersionUID = 1L;
	private String ctfSetName;		// ctf题目集名称
	private String ctfSetAttribute;		// ctf题目属性
	private String subjectSum;		// 题目总数
	private String experimentSum;		// 实验题目数量
	private String beginSubjectSum;		// 开始 题目总数
	private String endSubjectSum;		// 结束 题目总数
	private String beginExperimentSum;		// 开始 实验题目数量
	private String endExperimentSum;		// 结束 实验题目数量
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间
	//补充字段:CTF题目集是否被选择
	private String isChoose;
	private String trainprogramId;// 培训方案id

	private String userId;				//学生id

	public ResourceCtfSet() {
		super();
	}

	public ResourceCtfSet(String id){
		super(id);
	}

	@Length(min=1, max=64, message="ctf题目集名称长度必须介于 1 和 64 之间")
	public String getCtfSetName() {
		return ctfSetName;
	}

	public void setCtfSetName(String ctfSetName) {
		this.ctfSetName = ctfSetName;
	}
	
	@Length(min=1, max=4, message="ctf题目属性长度必须介于 1 和 4 之间")
	public String getCtfSetAttribute() {
		return ctfSetAttribute;
	}

	public void setCtfSetAttribute(String ctfSetAttribute) {
		this.ctfSetAttribute = ctfSetAttribute;
	}
	
	@Length(min=0, max=32, message="题目总数长度必须介于 0 和 32 之间")
	public String getSubjectSum() {
		return subjectSum;
	}

	public void setSubjectSum(String subjectSum) {
		this.subjectSum = subjectSum;
	}
	
	@Length(min=0, max=32, message="实验题目数量长度必须介于 0 和 32 之间")
	public String getExperimentSum() {
		return experimentSum;
	}

	public void setExperimentSum(String experimentSum) {
		this.experimentSum = experimentSum;
	}
	
	public String getBeginSubjectSum() {
		return beginSubjectSum;
	}

	public void setBeginSubjectSum(String beginSubjectSum) {
		this.beginSubjectSum = beginSubjectSum;
	}
	
	public String getEndSubjectSum() {
		return endSubjectSum;
	}

	public void setEndSubjectSum(String endSubjectSum) {
		this.endSubjectSum = endSubjectSum;
	}
		
	public String getBeginExperimentSum() {
		return beginExperimentSum;
	}

	public void setBeginExperimentSum(String beginExperimentSum) {
		this.beginExperimentSum = beginExperimentSum;
	}
	
	public String getEndExperimentSum() {
		return endExperimentSum;
	}

	public void setEndExperimentSum(String endExperimentSum) {
		this.endExperimentSum = endExperimentSum;
	}
		
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}

	public String getIsChoose() {
		return isChoose;
	}

	public void setIsChoose(String isChoose) {
		this.isChoose = isChoose;
	}

	public String getTrainprogramId() {
		return trainprogramId;
	}

	public void setTrainprogramId(String trainprogramId) {
		this.trainprogramId = trainprogramId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
}